using DevExpress.ExpressApp.Blazor.Services;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;

namespace EasyXaf.LowCode.WorkflowEditors.Nodes;

public partial class NodeAction
{
    [CascadingParameter]
    public WorkflowMode WorkflowMode { get; set; }

    [Parameter]
    public string CssClass { get; set; }

    [Parameter]
    public string IconName { get; set; }

    [Parameter]
    public string IconColor { get; set; }

    [Parameter]
    public string Tooltip { get; set; }

    [Parameter]
    public int IconSize { get; set; } = 16;

    [Parameter]
    public bool IsReadOnly { get; set; }

    [Parameter(CaptureUnmatchedValues = true)]
    public IDictionary<string, object> Attributes { get; set; }

    [Parameter]
    public EventCallback<MouseEventArgs> Click { get; set; }

    [Inject]
    private IImageUrlService ImageUrlService { get; set; }
}